<?php
/**
 * Cache代理类
 * User: houtizong
 * Date: 2022\5\26 0028
 * Time: 10:28
 */

namespace App\Utils;

use Hyperf\Utils\ApplicationContext;

class Cache
{
    //获取容器对象--单例
    public static function getIns()
    {
        return ApplicationContext::getContainer()->get(\Psr\SimpleCache\CacheInterface::class);
    }

    public static function __callStatic($name, $arguments)
    {
        return self::getIns()->$name(...$arguments);
    }
}